<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

//后台页面
Route::get('admin','admin/Index/index');
Route::get('admin/console','admin/Index/console');
Route::get('admin/loginout','admin/Index/loginOut');

//登录注册页面
Route::get('login','admin/Login/login');
Route::get('register','admin/Login/register');

//登录注册验证
Route::post('login/register','admin/Login/regAdmin');
Route::post('login/check','admin/Login/checkAdmin');

//发送短信验证码
Route::get('login/sendsms','admin/Login/sendSms');
//生成图形验证码
Route::get('login/verify','admin/Login/verify');


Route::get('admin/managers','admin/Admin/managers');
Route::get('admin/getUserList','admin/Admin/getUserList');
Route::post('admin/edituser','admin/Admin/editUserInfo');

Route::get('admin/group','admin/Admin/group');
Route::get('admin/authGroup','admin/Admin/getUserGroup');
Route::post('admin/addUserGroup','admin/Admin/addUserGroup');


Route::get('admin/rule','admin/Admin/rule');
Route::get('admin/getAuthRuleTree','admin/Admin/getAuthRuleTree');
Route::post('admin/addUserRule','admin/Admin/addUserRule');